<template>
  <el-popover placement="bottom-end" width="337" trigger="click">
    <el-container class="appDownload-container">
      <el-header>
        <h3>车杰盟荟购</h3>
        <p>服务热线：400-630-2999</p>
        <p>服务时间：周一到周五 9:00-18:00</p>
      </el-header>
      <el-main>
        <el-row>
          <el-col :span="12">
            <div class="app_qr fl">
              <img src="./images/android_buyer.jpg" />
              <p>荟购买家客户端<br />（Android版）</p>
            </div>
          </el-col>
          <el-col :span="12">
            <div class="app_qr fr">
              <img src="./images/android_seller.jpg" />
              <p>荟购卖家客户端<br />（Android版）</p>
            </div>
          </el-col>
        </el-row>
        <el-row style="margin-top:24px;">
          <el-col :span="12">
            <div class="app_qr fl">
              <img src="./images/app_buyer.jpg" />
              <p>荟购买家客户端<br />（IOS版）</p>
            </div>
          </el-col>
          <el-col :span="12">
            <div class="app_qr fr">
              <img src="./images/app_seller.jpg" />
              <p>荟购买家客户端<br />（IOS版）</p>
            </div>
          </el-col>
        </el-row>
      </el-main>
      <el-footer>汽车后市场汽配采购解决方案，值得拥有！</el-footer>
    </el-container>
    <div slot="reference" class="dropdown-title">
      <svg-icon class-name="appDownload-icon" icon-class="appDownload" />
    </div>
  </el-popover>
</template>

<script type="text/ecmascript-6">
export default {
  computed: {},
  methods: {}
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .dropdown-title {
    padding: 0 15px;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s;
    &:hover { background-color: #f9f9f9; }
    .appDownload-icon {
      font-size: 14px;
      fill: rgba(0, 0, 0, 0.8);
      cursor: pointer;
      vertical-align: middle;
    }
  }

  .el-header{
    padding: 20px 24px 12px;
    height: auto !important;
    border-bottom: 1px solid #ebeef5;
    h3 {
      margin: 0 0 15px 0;
      line-height: 16px;
      font-size: 16px;
      font-weight: normal;
      color: #000;
    }
    p {
      margin: 0 0 8px 0;
      line-height: 14px;
      font-size: 14px;
      color: #000;
    }
  }

  .el-main {
    padding: 20px 24px;
    .app_qr {
      text-align: center;
      p {
        margin: 0 auto;
      }
    }
  }

  .el-footer {
    padding: 12px 0;
    height: auto !important;
    text-align: center;
    border-top: 1px solid #ebeef5;
  }

</style>
